package org.tong;

import lombok.Data;
import lombok.ToString;

import java.util.List;
import java.util.Map;

/**
 * @author
 * @date 2022-10-23 18:08
 */

@Data
@ToString
public class ConfigBean {
    private String name;

    private List<Prop> props;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Prop> getProps() {
        return props;
    }

    public void setProps(List<Prop> props) {
        this.props = props;
    }


    @Data
    public static class Prop {

        public Prop() {

        }

        public Prop(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String key;

        public String value;

        @Override
        public String toString() {
            return String.format("(%s, %s)", key, value);
        }
    }
}
